package com.p2p.auth.service.repository;

import com.p2p.auth.domain.entity.UserRole;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by Antinomy on 16/12/14.
 */
public interface UserRoleRepository extends JpaRepository<UserRole, Long> {

    UserRole findByRoleId(String roleId);

    Page<UserRole> findAll(Specification<UserRole> userRoleSpecification, Pageable page);
}
